<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 150px;
            height: 140px;
            background: pink url(../image1/bg.png);
            /* 速度曲线steps(N)表示多少帧 --总共12把动画分成多少帧 */
            animation: dong 1s steps(12) infinite;
        }

        @keyframes dong {
            0% {
                background-position: 0 0;
            }

            100% {
                background-position: -1680px 0;
            }
        }
    </style>
</head>

<body>
    <div class="box">

    </div>

</body>

</html>